# - Try to find a Revel installation
# Once done, this will define
#
#  Revel_FOUND - system has Revel
#  Revel_INCLUDE_DIRS - the Revel include directories
#  Revel_LIBRARIES - link these to use Revel

include(LibFindMacros)

# Use pkg-config to get hints about paths
libfind_pkg_check_modules(Revel_PKGCONF Revel)

# Include dirs
find_path(Revel_INCLUDE_DIR
	NAMES revel.h
	PATHS ${Revel_PKGCONF_INCLUDE_DIRS}
	PATH_SUFFIXES revel
)

# Library locations
find_library(Revel_LIBRARY
  NAMES revel revelD
  PATHS ${Revel_PKGCONF_LIBRARY_DIRS}
)

# Set the include dir variables and the libraries and let libfind_process do the rest.
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.

set(Revel_PROCESS_LIBS Revel_LIBRARY)
libfind_process(Revel)

